<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<div style="margin: 0px auto;width: 1200px;height: 1200px;">
    <div style="display: flex;align-items: center;margin: 0px;">
        <h3>
            G论坛后台管理
        </h3>
        <div style="margin: 0px 15px;">欢迎您：ypz</div>
<!--        <a href="{:url('admin/alogin')}" style="margin-right: 15px;"><input type="button" value="登录"/></a>-->
<!--        <a href="{:url('admin/alogout')}"><input type="button" value="注销"/></a>-->
    </div>
    <div class="top">
        <div class="top1"><a href="/ypz_forum_admin/deal/mesdeal">帖子管理</a></div>
        <div class="top1"><a href="{:url('deal/userdeal')}">用户管理</a></div>
        <div class="top1"><a href="{:url('deal/secdeal')}">版块管理</a></div>
        <div class="top1"><a>回收站管理</a></div>
        <div class="top1"><a>广告管理</a></div>
        <div class="top1"><a>轮播图管理</a></div>
        <div class="top1"><a href="{:url('admin/apa')}">修改密码</a></div>
        <div class="top1"><a>注销</a></div>
        <div class="top1"><a>论坛前台</a></div>
    </div>
    <div class="next">
    </div>
    <div class="next">
        <div class="top2" style="margin-left: 15px;">
            {volist name='section' id='sec1Row'}
            <a href="{:url('deal/mesdeal',['sid' => $sec1Row.id])}">{$sec1Row.name}</a>
            {/volist}
        </div>
    </div>
    <div class="nowban">
        <div style="font-weight: 600;">当前模块：{$sid}</div>
        <div>
            <form action="{:url('deal/userdeal')}">
                <input type="text" name="keyword" value="{$keyword}">
                <button style="background-color: lightskyblue;" type="submit">搜索</button>
            </form>
        </div>
    </div>
    <div class="center">
        <table border="1px" style="text-align: center;width: 1200px;height: 50px;">
            <tr>
                <td>序号</td>
                <td>帖子id|标题</td>
                <td>发布时间</td>
                <td>作者</td>
                <td>操作</td>
            </tr>
            {volist name ='article' id='mesRow' key='k'}
            <tr>
                <td>
                    {$k}
                </td>
                <td><a href="{:url('deal/adetail',['id' => $mesRow.id])}" style="text-decoration: none;">{$mesRow.id}|{$mesRow.title}</a></td>
                <td>{$mesRow.create_time|date='Y-n-j H:i'}</td>
                <td>{$mesRow.author}</td>
                <td><a href="{:url('deal/mesdel',['id' => $mesRow.id])}">直接删除</a> | 回收站</td>
            </tr>
            {/volist}

        </table>
    </div>

</div>
</body>
</html>
<style>
    .top {
        display: flex;
        background-color: rgb(5, 64, 115);
    }

    .top1 {
        height: 40px;
        width: 100px;
        text-align: center;
        padding-top: 15px;
        color: aliceblue;
        /* border: 1px solid red; */
    }

    .top1 a {
        color: aliceblue;
        text-decoration: none;
    }

    .top1:hover {
        background-color: gray;

    }

    .next {
        display: flex;
        border: 1px solid rgb(45, 129, 219);
        margin-top: 5px;

    }

    .top2 {
        /*width: 70px;*/
        /*height: 30px;*/
        padding: 4px;
        margin-right: 15px;
        text-align: center;
        display: flex;
    }

    .top2 a {
        text-decoration: none;
        /* flex: 1; */
        display: block;
        /* border: 1px solid red; */
        margin: 10px;
        font-weight: bold;
        font-size: 16px;
        color: black;

    }

    .next :hover {
        background-color: aquamarine;
    }

    .nowban {
        display: flex;
        justify-content: space-between;
        border: 1px solid rgb(45, 129, 219);
        height: 35px;
        margin-top: 5px;
        padding-top: 5px;

    }

    .center table tr {
        width: 100px;
    }
</style>
